package ui.panel {

	import ui.component.Page;
	import ui.panel.warriors.WarriorInfo;
	
	public class WarriorPanel extends BasePanel {
		
		private var warriorList:Array;
		private var page:Page;

		public function WarriorPanel() {
			super();
			pid = PanelType.WARRIOR_PANEL;
		}
		
		override protected function initUI():void {
			super.initUI();
			warriorList = new Array();
			var info:WarriorInfo;
			for (var i:int = 0; i<4; i++) {
				info = new WarriorInfo();
				info.x = 20 + 145 * i;
				info.y = 40;
				addChild(info);
				warriorList.push(info);
			}
			
			page = new Page(pageHandler);
			page.x = 326;
			page.y = 390;
			addChild(page);
			page.update(1);
		}
		
		private function pageHandler(num:uint):void {
			
		}
		
		public function update():void {
			
		}
		
		public function clear():void {
			
		}
	}
}